package com.my.roco.service.impl;

import com.my.roco.dao.SkillMapper;
import com.my.roco.pojo.Skill;
import com.my.roco.service.SkillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SkillServiceImpl implements SkillService {

    @Autowired
    private SkillMapper skillMapper;

    @Override
    public void addSkill(Skill skill) {
        skillMapper.insertSkill(skill);
    }

    @Override
    public List<Skill> getSkillsByPetNumber(String petNumber) {
        return skillMapper.getSkillsByPetNumber(petNumber);
    }
    @Override
    public void deleteSkill(int id) {
        skillMapper.deleteSkill(id);
    }
}